home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Utilities / MountDos12 / MountDos.doc < prev    next >
Encoding:
Text File  |  2000-12-04  |  10.1 KB  |  267 lines

  1.  
  2. $VER: MountDos 1.2 (2.12.00) PD, (c) Harry "Piru" Sintonen.
  3.  
  4. New in v1.2
  5. -----------
  6.  
  7. o bugfixes
  8.   - The Workbench startup was broken in v1.1, fixed.
  9.  
  10. o improvements
  11.   - Added dozens of new partition identifiers.
  12.   - Added FAT32 support with fat95 (disk/misc/fat95.lha).
  13.   - Added 'StackSize = 2048' for mountlists.
  14.   - Added "MaxTransfer" and "Buffers" keywords to generated mountlists,
  15.     default maxtransfer is 0xfffe00 and buffers is 20.
  16.   - Changed mountlist "BufMemType" from MEMF_ANY to MEMF_PUBLIC.
  17.   - The new options (and tooltypes):
  18.  
  19.     MAXTRANSFER   MaxTrasfer for the mountlists, in hex or decimal
  20.     BUFFERS/N     Buffers to use per mounted partition
  21.     FAT95/S       Mount the partition using fat95 instead of CrossDOS
  22.     INCLHIDDEN/S  Include hidden partitions to operation
  23.  
  24.  
  25.     Some old IDE devices misbehave with big MaxTransfer value. If this
  26.     seems to be the problem, use MAXTRANSFER 0x1fe00 or 0xfe00 to fix
  27.     it.
  28.  
  29.     The total memory taken by the 'buffers' depend on the filesystem
  30.     implementation, currently 1 buffer = 512 bytes. Note that the
  31.     filesystem might round up the given value.
  32.  
  33.     Now you can mount FAT32 drives with the excellect (and free!) fat95
  34.     filesystem. No longer 4gig disk limit! Download disk/misc/fat95.lha
  35.     and copy the filesystem to l:. Now you can specify FAT95 switch to
  36.     use l:fat95 instead of l:CrossDOSFileSystem. Also, as a bonus, fat95
  37.     give long filename support (upto 65 chars).
  38.  
  39.     In some cases DOS hard disk might have hidden partitions. INCLHIDDEN
  40.     option can be used with LIST, GENERATE and MOUNT to include these
  41.     hidden partitions.
  42.  
  43.  
  44.  
  45. New in v1.1
  46. -----------
  47.  
  48. o bugfixes
  49.   - Left orphaned tempfile to t: if some error occured while mounting
  50.     -> no further 'mountdos mount' were possible. Multiple simultanous
  51.     'mountdos mount' weren't possible. Fixed to delete the tempfile
  52.     in all error cases and to generate pseudo-random tempfile filename.
  53.   - QUIET-option had a memory leakage. Fixed.
  54.   - Didn't check for success from String(), could have crashed. Fixed.
  55.  
  56. o improvements
  57.   - Custom error messages for 'No disk in the drive' and
  58.     'Block len not supported'.
  59.   - The new options (and tooltypes):
  60.  
  61.     PREFIX    Prefix to add before mount unit name
  62.  
  63.     The names used for generating and mounting are now composed in the form:
  64.       <prefix>MD<unit-number><partition-number>:     for dos partitions and
  65.       <prefix>ND<unit-number><partition-number>:     for non-dos partitions.
  66.  
  67.     For example in s:user-startup:
  68.  
  69.     ;BEGIN Mount-ZIP
  70.     mountdos blizzppc.device 2 PREFIX "ZIP" MOUNT QUIET
  71.     ;END Mount-ZIP
  72.  
  73.  
  74.  
  75. Original documentation
  76. ----------------------
  77.  
  78. $VER: MountDos 1.0 (28.1.96) PD, (c) K.P. van Beem.
  79.  
  80. MS-Dos partition-table lister and Cross-Dos mounter for PC-HD's. Based on
  81. information gained from the source of the Linux FDisk, by A. V. Le Blanc
  82. (LeBlanc@mcc.ac.uk). This program is free software. You can redistribute it
  83. and/or modify it under the terms of the GNU General Public License as
  84. published by the Free Software Foundation.
  85.  
  86.  
  87. Who can use this program?
  88. -------------------------
  89.  
  90. This program is for every one who connects PC-HD's (or -alike devices) on
  91. his Amiga. Occasionally or permanent.
  92.  
  93.  
  94. Why did I wrote this program?
  95. -----------------------------
  96.  
  97. I wanted to connect a SCSI-HD simultaniously to my PC and my Amiga, to be
  98. able to share the same drive-space and sharing files between the two
  99. machines. The hardware was no problem (just connect all 24 wires 1:1 (not
  100. the TermPower!) and ready you are). Then I had to mount the PC HD on my
  101. amiga, using cross-dos as file-system. But the HD was partitioned in 3
  102. partitions and one free space (intended to create an Amiga partition on
  103. it). What should my mountlist look like? How did the PC partition the
  104. drive? Which partition is the dos partition?
  105.  
  106. I couldn't find the information I needed. 'Til I found sources of the
  107. MS-Dos program FDisk (actually, the Linux version on my Linux system). I
  108. used the information to write an Amiga programma which reads and interprets
  109. the MS-Dos partition-table on the HD. Mounting PC-HD's was never that easy!
  110.  
  111.  
  112. How does it work?
  113. -----------------
  114.  
  115. In one word: Simple!
  116.  
  117. All you need to know is the device (default: scsi.device) and the unit
  118. (default 0) of the DOS HD. Then you type:
  119.   MountDos <device> <unit> MOUNT
  120. (where device and unit are optional, defaults are scsi.device, unit 0) and
  121. all PC-Filesystems on that HD will be mounted and ready for use! The
  122. program does need the Mount command to be available (in the path) and the
  123. T: assignment set-up correctly (both will be the case on a normal installed
  124. Amiga).
  125. You can also pass the options through workbench. The included icon is a
  126. Project icon. The program and the icon don't have to be in the same
  127. directory, as long as the program is in the current path. You can have
  128. multiple different instances of the icon (for instance in the WBStartup
  129. drawer) but you need only one instance of the program.
  130.  
  131. The options (tooltypes) are:
  132.   DEVICE    Device to use
  133.   UNIT      Unit to use
  134.   LIST      List MS-Dos partition table
  135.   MOUNT     Mount all dos-partitions found on the device/unit
  136.   GENERATE  Generate a mountlist with all partitions found
  137.   QUIET     Don't produce any output, except 'usage', when no actions
  138.             are specified.
  139.  
  140. The names used for generating and mounting are composed in the form:
  141.  MD<unit-number><partition-number>:     for dos partitions and
  142.  ND<unit-number><partition-number>:     for non-dos partitions.
  143. This prevent duplicate names. The dos and non-dos partitions are
  144. independently numbered. But if you generate a mountlist, you can edit it as
  145. you like. Non-dos partitions are NOT automaticly mounted with the MOUNT
  146. option. In the generated mountlist, for non-dos partition entries, the
  147. FileSystem will be replaced by the type of the partition and the DosType
  148. will be '?'.
  149.  
  150. The value of BlocksPerTrack is chosen as high as possible (max $0800), to
  151. prevent high values for High and Low cylinder. Some file-systems seem to
  152. have trouble with high values.
  153.  
  154. I'm not responsable for any damage that may occur while using this program.
  155. The safest way is to make a LIST, GENERATE mountlist, inspect the results
  156. and then use MOUNT if all seems fine.
  157.  
  158.  
  159. What is supported and what not?
  160. -------------------------------
  161.  
  162. All partitions (including all extended partitions) are examined. The
  163. following file-systems are recognized (but only 1, 4 and 6 are auto-mounted
  164. with the MOUNT option. For the others, no (AFAIK) filesystem exists for the
  165. Amiga):
  166.  
  167.     ID    Name
  168.     ----  -------------------------
  169.     0     Empty,
  170.     1     DOS 12-bit FAT,
  171.     2     XENIX root,
  172.     3     XENIX usr,
  173.     4     DOS 16-bit <32M,
  174.     5     Extended,
  175.     6     DOS 16-bit >=32M,
  176.     7     OS/2 HPFS         -> or QNX?
  177.     8     AIX,
  178.     9     AIX bootable,
  179.     10    OPUS,
  180.     $40   Venix 80286,
  181.     $51   Novell?,
  182.     $52   Microport         -> or CPM?
  183.     $63   GNU HURD          -> or System V/386?
  184.     $64   Novell,
  185.     $75   PC/IX,
  186.     $80   Old MINIX         -> Minix 1.4a and earlier
  187.     $81   Linux/MINIX       -> Minix 1.4b and later
  188.     $82   Linux swap,
  189.     $83   Linux native,
  190.     $93   Amoeba,
  191.     $94   Amoeba BBT        -> (bad block table)
  192.     $B7   BSDI fs,
  193.     $B8   BSDI swap,
  194.     $C7   Syrinx,
  195.     $DB   CP/M              -> or Concurrent DOS?
  196.     $E1   DOS access,
  197.     $E3   DOS R/O,
  198.     $F2   DOS secondary,
  199.     $FF   BBT               -> (bad track table)
  200.  
  201. The program has so far only been tested on my A500 with KS and WB 3.1, a
  202. 030/25 processor and a Multi-evolution HD controller with a 230MB Maxtor
  203. HD, connected to a 486/DX2-66 PC with a Future Domain TMC-950
  204. SCSI-controller with a 840MB Quantum and also connected to an external
  205. Apple PowerCD CD-Rom (SCSI).
  206. And on an A4000/030 with KS and WB 3.0 and an Amiga and a MS-Dos IDE in it.
  207. But it should work on al KS and WB 2.0+ machines and all kind of HD
  208. controllers, including IDE (!). Plug and Play!
  209.  
  210.  
  211. The results of the command 'MountDos evolution.device 2 LIST' (Unit 2 is
  212. the 840 MB Quantum in the PC) on my system, is:
  213.  
  214.       Start:         End:             Start  Number of
  215.  boot Head Cyl. Sect Head Cyl. Sect   Sector Sectors     MB System
  216. 1 no     1    0    1   63  199   32       32    409568  199 DOS 16-bit >=32M
  217. 2 no     0  200    1   63  484   32   409600    583680  285 Linux native
  218. 3 no     0  485    1   63  499   32   993280     30720   15 Linux swap
  219. 4 no     0    0    0    0    0    0        0         0    0 Empty
  220.  
  221. There's an empty block of about 340M at the end of the disk. I've created
  222. an Amiga partition there. This one does NOT show-up in the MS-Dos partition
  223. list! But with the LIST option, at least you know exactly where it can
  224. begin safely! It's possible to create an MS-Dos partition here, generate a
  225. mount-list entry, delete the partition and edit and use the mountlist with
  226. other file-systems.
  227.  
  228.  
  229. The results on the A4000 are:
  230.  
  231.       Start:         End:             Start  Number of
  232.  boot Head Cyl. Sect Head Cyl. Sect   Sector Sectors     MB System
  233. 1 no     1    0    1    3  548   28       28     61460   30 DOS 16-bit <32M
  234. 2 no     0  549    1    3  743   28    61488     21840   10 Extended
  235. 3 no     0    0    0    0    0    0        0         0    0 Empty
  236. 4 no     0    0    0    0    0    0        0         0    0 Empty
  237.  
  238. Extended partition at sector 61488:
  239.       Start:         End:             Start  Number of
  240.  boot Head Cyl. Sect Head Cyl. Sect   Sector Sectors     MB System
  241. 1 no     1  549    1    3  743   28    61516     21812   10 DOS 12-bit FAT
  242. 2 no     0    0    0    0    0    0        0         0    0 Empty
  243. 3 no     0    0    0    0    0    0        0         0    0 Empty
  244. 4 no     0    0    0    0    0    0        0         0    0 Empty
  245.  
  246.  
  247. Author
  248. ------
  249.  
  250. That's me. My name is K.P. van Beem. Mostly called Patrick. You can reach
  251. me at patrick@aobh.xs4all.nl or 2:280/464.2 (Fido-net) or Boxnet (Origin).
  252. Or by snail-mail:
  253.   K.P. van Beem
  254.   Parlevinker 5
  255.   2152 LC  Nieuw-Vennep
  256.   The Netherlands
  257.  
  258. This program is Public Domain (also is the source, in E). But if you realy
  259. like it, you're free to donate some thing to me (Giro 6047762). If you have
  260. any questions, suggestions or bug-reports, feel free to contact me.
  261.  
  262. Thanks to Wilfred van Velsen for intensive testing of this program on his
  263. A4000.
  264.  
  265. Have fun with your Amiga! (It's alive! (Again!))
  266.  
  267.